<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/taglibs.jspf" %>
<!DOCTYPE html>
<html>
<head>
    <title><spring:message code="sys.menu.edittitle" /></title>
    <meta name="decorator" content="form"/> 
</head>

<body class="white-bg"  formid="menuForm">
     <form:form id="menuForm" modelAttribute="data" method="post" class="layui-form" >
		<form:hidden path="id"/>
		 <div class="layui-row layui-col-space10 layui-form-item">
			 <div class="layui-col-sm6">
				 <label class="layui-form-label">上级菜单:</label>
				 <div class="layui-input-block">
					 <form:treeselect title="请选择上级菜单"   path="parentId" dataUrl="${appPath}/system/menu/treeData"   labelName="parentname" labelValue="${data.parent.name}" />
				 </div>
			 </div>
			 <div class="layui-col-sm6">
				 <label class="layui-form-label">菜单名称:</label>
				 <div class="layui-input-block">
					 <form:input path="name" class="layui-input" datatype="*" nullmsg="请输入菜单名称！" htmlEscape="false" />
					 <label class="Validform_checktip"></label>
				 </div>
			 </div>
		 </div>
		 <div class="layui-row layui-col-space10 layui-form-item">
			 <div class="layui-col-sm6">
				 <label class="layui-form-label">链接:</label>
				 <div class="layui-input-block">
					 <form:input path="url" class="layui-input"  nullmsg="请输入菜单跳转的页面！" htmlEscape="false" />
					 <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>点击菜单跳转的页面</span>
					 <label class="Validform_checktip"></label>
				 </div>
			 </div>
			 <div class="layui-col-sm6">
				 <label class="layui-form-label">权限标识:</label>
				 <div class="layui-input-block">
					 <form:input path="permission" class="layui-input" nullmsg="请输入权限标识！" htmlEscape="false" />
					 <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>控制器中定义的权限标识，<br />如：@RequiresPermissions("权限标识")</span>
					 <label class="Validform_checktip"></label>
				 </div>
			 </div>
		 </div>
		 <div class="layui-row layui-col-space10 layui-form-item">
             <div class="layui-col-sm6">
                 <label class="layui-form-label"><font color="red">*</font>是否显示:</label>
                 <div class="layui-input-block">
                     <form:radiobuttons path="showFlag" dict="whether" defaultValue="${roleIdList}" htmlEscape="false" cssClass="i-checks required" />
                     <label class="Validform_checktip"></label>
                 </div>
             </div>
             <div class="layui-col-sm6">
                 <label class="layui-form-label">权限类型:</label>
                 <div class="layui-input-block">
                     <form:select path="type"  dict="permissionType" defaultValue="1"  class="layui-input" nullmsg="请选择权限类型！" htmlEscape="false" />
                     <label class="Validform_checktip"></label>
                 </div>
             </div>
		 </div>
		 <div class="layui-row layui-col-space10 layui-form-item">
			 <label class="layui-form-label"><font color="red">*</font>备注:</label>
			 <div class="layui-input-block">
				 <form:textarea path="remarks" htmlEscape="false" rows="3" maxlength="200" class="layui-textarea"/>
			 </div>
		 </div>
		 <div class="layui-row layui-col-space10 layui-form-item">
			 <div class="layui-col-sm6">
				 <label class="layui-form-label">图标:</label>
				 <div class="layui-input-block">
					 <form:iconselect path="menuIcon" />
					 <label class="Validform_checktip"></label>
				 </div>
			 </div>
			 <div class="layui-col-sm6">
				 <label class="layui-form-label">排序:</label>
				 <div class="layui-input-block">
					 <form:input path="sort" class="layui-input"  htmlEscape="false" />
					 <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>排序为升序</span>
					 <label class="Validform_checktip"></label>
				 </div>
			 </div>
		 </div>
	</form:form>
	 
</body>
</html>